package top.hkyzf.study.j2se.syy.bill;

/**
 * 商品信息类
 * @author 朱峰
 * @date 2021-6-24 15:04
 */
public class Goods {
    // 品名
    private String item;
    // 数量
    private int quantity;
    // 单价
    private float price;

    public Goods(String item, int quantity, float price) {
        this.item = item;
        this.quantity = quantity;
        this.price = price;
    }

    public String getItem() {
        return item;
    }

    public int getQuantity() {
        return quantity;
    }

    public float getPrice() {
        return price;
    }
}
